package com.sn.author.common.sdk.request;

import com.sn.author.common.sdk.AbstractRequest;
import com.sn.author.common.sdk.response.LoginDyResponse;
import com.sn.author.common.sdk.response.RegisterResponse;
import lombok.Setter;

import java.util.Map;

@Setter
public class RegisterRequest extends AbstractRequest implements Request<RegisterResponse> {

    //注册个数
    private Integer regNum;

    @Override
    protected void setUrlParamsMap(Map<String, Object> map) {
        map.put("regNum",regNum);
    }

    @Override
    public String getApiUrl() {
        return super.getBaseUrl() + "/dy/register";
    }

    @Override
    public Class<RegisterResponse> getResponseClass() {
        return RegisterResponse.class;
    }

    @Override
    public Object getUrlParams() {
        setUrlParamsMap(super.urlParamsMap);
        return super.urlParamsMap;
    }

    @Override
    public Object initRequestParams(Map<String, String> paramsMap) {
        return null;
    }
}
